// 项目全局css
import './assets/main.css'
// echarts全局css
import './Echarts/index.css'
//element-plus框架全局样式
import 'element-plus/dist/index.css'

import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)

//pinia全局状态管理+pinia持久化
import piniaPersist from 'pinia-plugin-persist'
import { createPinia } from 'pinia'
const pinia = createPinia()
pinia.use(piniaPersist)
app.use(pinia)

//注册路由
import router from './router'
app.use(router)

//注册路由
import * as $Http from '@/http'
app.use($Http)

// 微前端
import microApp from '@micro-zoe/micro-app'
microApp.start({
    prefetchDelay: 1000, // 修改delay默认值为5000ms
})

//挂载实例
app.mount('#app')

